/**
 *  REPORTS WINDOW
 *  SCREEN GENERICA PRA SER USADA PRA LISTAR INFORMACOES
 *  PARAMS:
 *  	COLNAMES: ARRAY COM OS NOMES DAS COLUNAS (A QUANTIDADE EH ESPECIFICADA PELO N DE ELEMENTOS)
 *  	DATA: ARRAY 2D COM AS INFORMACOES DA TABELA LINHA X COLUNA
 * 
 */
package br.com.hotel68.view.gui;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JLabel;
import java.awt.FlowLayout;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JTable;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.print.PrinterException;
import java.beans.PropertyChangeListener;

import javax.swing.JSpinner;
import javax.swing.JComboBox;
import javax.swing.JSeparator;
import javax.swing.ImageIcon;
import javax.swing.JTextField;

public class InsertHostingWindow extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5809347886461144065L;
	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	JComboBox roomBox;
	JComboBox clientsBox;
	
	public InsertHostingWindow(){
		roomBox = new JComboBox();
		clientsBox = new JComboBox();
		initialize();
		this.setVisible(true);
	}

	/**
	 * Create the frame.
	 */
	public void initialize() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 400, 400);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JPanel panel = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panel.getLayout();
		flowLayout.setAlignment(FlowLayout.LEFT);
		contentPane.add(panel, BorderLayout.NORTH);
		
		JLabel lblReportTitle = new JLabel("Criar uma reserva");
		lblReportTitle.setFont(new Font("Tahoma", Font.BOLD, 12));
		panel.add(lblReportTitle);
		
		JPanel panel_2 = new JPanel();
		contentPane.add(panel_2, BorderLayout.CENTER);
		panel_2.setLayout(null);
		

		roomBox.setBounds(254, 33, 86, 20);
		panel_2.add(roomBox);
		
		JLabel lblQuarto = new JLabel("Quarto");
		lblQuarto.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblQuarto.setBounds(10, 35, 46, 14);
		panel_2.add(lblQuarto);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(15, 64, 344, 2);
		panel_2.add(separator);
		

		clientsBox.setBounds(142, 77, 198, 20);
		panel_2.add(clientsBox);
		
		JLabel label = new JLabel("");
		label.setIcon(new ImageIcon("img/onebit_31.png"));
		label.setBounds(338, 77, 26, 24);
		panel_2.add(label);
		
		JLabel lblCliente = new JLabel("Cliente");
		lblCliente.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblCliente.setBounds(10, 80, 46, 14);
		panel_2.add(lblCliente);
		
		JSeparator separator_1 = new JSeparator();
		separator_1.setBounds(15, 108, 344, 2);
		panel_2.add(separator_1);
		
		JSeparator separator_2 = new JSeparator();
		separator_2.setBounds(15, 153, 344, 2);
		panel_2.add(separator_2);
		
		JSeparator separator_3 = new JSeparator();
		separator_3.setBounds(15, 198, 344, 2);
		panel_2.add(separator_3);
		
		textField = new JTextField();
		textField.setBounds(254, 122, 86, 20);
		panel_2.add(textField);
		textField.setColumns(10);
		
		JLabel lblCheckin = new JLabel("Check-in");
		lblCheckin.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblCheckin.setBounds(10, 128, 63, 14);
		panel_2.add(lblCheckin);
		
		JLabel lblCheckout = new JLabel("Check-out");
		lblCheckout.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblCheckout.setBounds(10, 173, 63, 14);
		panel_2.add(lblCheckout);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(254, 167, 86, 20);
		panel_2.add(textField_1);
		
		JPanel panel_1 = new JPanel();
		FlowLayout flowLayout_1 = (FlowLayout) panel_1.getLayout();
		flowLayout_1.setAlignment(FlowLayout.RIGHT);
		contentPane.add(panel_1, BorderLayout.SOUTH);
		
		JButton btnCancel = new JButton("Cancelar");
		btnCancel.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		
		JButton btnCreate = new JButton("Criar");
		btnCreate.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
			}
		});
		panel_1.add(btnCreate);
		panel_1.add(btnCancel);
	}
}
